package cn.bdqn.service.impl;

import cn.bdqn.domain.Cargo;
import cn.bdqn.service.CargoService;
import cn.bdqn.utils.result.Result;
import cn.bdqn.utils.result.ResultGenerator;
import org.springframework.stereotype.Component;

/**
 * @author dkj
 */
@Component
public class CargoServiceImpl implements CargoService {


    @Override
    public Result queryByPrimaryKey(Integer id) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result queryByCargo(Cargo cargo, Integer pageNum, Integer pageAmount) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result insert(Cargo cargo) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result updateByPrimaryKeySelective(Cargo cargo) {
        return ResultGenerator.genFailResult("报错了");
    }
}
